#define _CRT_SECURE_NO_WARNINGS
#define SIZE 5
#include <stdio.h>
int SequencetialSearch2(int arr[], int K) {
	arr[SIZE] = K;
	int i = 0;
	while (arr[i] != K) {
		i += 1;
	}
	if (i < SIZE) {
		return i;
	}
	else {
		return -1;
	}
}
int main() {
	int arr[SIZE + 1] = {0};
	int i = 0;
	for (i = 0; i < SIZE; i++) {
		arr[i] = i;
	}
	int result=SequencetialSearch2(arr, 8);
	printf("%d", result);
	return 0;
}